import Vue from "vue";
import VueI18n from "vue-i18n";
import de from "@plugins/i18n/de";
import en from "@plugins/i18n/en";
import fr from "@plugins/i18n/fr";
import jp from "@plugins/i18n/jp";
import ru from "@plugins/i18n/ru";
import tha from "@plugins/i18n/tha";
import zh from "@plugins/i18n/zh";
import config from "@/store/modules/config";
Vue.use(VueI18n);
const messages = {
  de: de,
  en: en,
  fr: fr,
  jp: jp,
  ru: ru,
  tha: tha,
  zh: zh
};
const i18n = new VueI18n({
  locale: config.state.rn,
  messages,
  silentTranslationWarn: true // 忽略翻译警告
});
i18n.language = messages;
export default i18n;
